<template>
	<view @click="handle" style="display: flex;">
		<slot></slot>
	</view>
</template>

<script>
	export default {
		name: 'get-detail',
		props: {
			list: String,
			index: Number,
			t_id: Number,
			d_account: Number,
			t_name: String
		},

		methods: {
			handle() {
				// 将数据缓存
				getApp().globalData.list = this.list
				getApp().globalData.index = this.index
				getApp().globalData.t_id = this.t_id
				getApp().globalData.d_account = this.d_account
				getApp().globalData.t_name = this.t_name
				// 点击跳转
				uni.navigateTo({
					url: "/pages/ticket-detail/ticket-detail", // 跳转到对应的详情页面
				})
			}
		},
	}
</script>

<style>
</style>
